import { GET, route } from "awilix-koa";
import * as Router from "koa-router";
import { Context } from "../interface/IKoa";
@route("/")
class IndexController {
  @route("/")
  @GET()
  async actionList(ctx: Context, next: () => Promise<any>): Promise<any> {
    // ctx.body = {
    //   data: "jack love"
    // };
    ctx.body = await ctx.render("index");
  }
}

export default IndexController;
